﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SharpCmd.Controls.Viewers
{
    internal partial class SoundVideoViewer : ViewerControl
    {
        public SoundVideoViewer()
        {
            InitializeComponent();
        }

        public override void Initialize()
        {
        }

        public override void Uninitialize()
        {
            axWindowsMediaPlayer1.Ctlcontrols.stop();
            axWindowsMediaPlayer1.Dispose();
        }

        public override void Display()
        {
            //play
            axWindowsMediaPlayer1.URL = FileName;
            axWindowsMediaPlayer1.Ctlcontrols.play();
        }
    }
}